<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"><title>梧桐的学习日记 - 你的美好等我去发现</title><meta name="author" content="梧桐影下月光卧"><meta name="copyright" content="梧桐影下月光卧"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="分享个人学习路上的小知识">
<meta property="og:type" content="website">
<meta property="og:title" content="梧桐的学习日记">
<meta property="og:url" content="https://acwy.fun/page/2/index.html">
<meta property="og:site_name" content="梧桐的学习日记">
<meta property="og:description" content="分享个人学习路上的小知识">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://acwy.fun/img/logo.png">
<meta property="article:author" content="梧桐影下月光卧">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://acwy.fun/img/logo.png"><link rel="shortcut icon" href="/img/logo.png"><link rel="canonical" href="https://acwy.fun/page/2/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: undefined,
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: true,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: true,
  }
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: '梧桐的学习日记',
  isPost: false,
  isHome: true,
  isHighlightShrink: false,
  isToc: false,
  postUpdate: '2024-05-05 21:13:51'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
    win.getCSS = (url,id = false) => new Promise((resolve, reject) => {
      const link = document.createElement('link')
      link.rel = 'stylesheet'
      link.href = url
      if (id) link.id = id
      link.onerror = reject
      link.onload = link.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        link.onload = link.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(link)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 5.4.2"></head><body><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pace-js/themes/blue/pace-theme-minimal.min.css"/><script src="https://cdn.jsdelivr.net/npm/pace-js/pace.min.js"></script><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src= "" data-lazy-src="/img/logo.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">28</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">35</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 目录</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友情链接</span></a></div></div></div></div><div class="page" id="body-wrap"><header class="full_page fixed" id="page-header" style="background-image: url('/img/top_img.jpeg')"><nav id="nav"><span id="blog-info"><a href="/" title="梧桐的学习日记"><span class="site-name">梧桐的学习日记</span></a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 目录</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友情链接</span></a></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="site-info"><h1 id="site-title">梧桐的学习日记</h1><div id="site-subtitle"><span id="subtitle"></span></div></div><div id="scroll-down"><i class="fas fa-angle-down scroll-down-effects"></i></div></header><main class="layout" id="content-inner"><div class="recent-posts" id="recent-posts"><div class="recent-post-item"><div class="post_cover left"><a href="/2023/08/28/%E7%B2%A4%E6%95%99%E7%89%88%E4%B9%9D%E5%B9%B4%E7%BA%A7/" title="粤教版九年级"><img class="post-bg" src= "" data-lazy-src="https://upyun.acwy.fun/%E5%AD%A6%E4%B9%A0/360%E6%88%AA%E5%9B%BE20230828170521454.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="粤教版九年级"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/08/28/%E7%B2%A4%E6%95%99%E7%89%88%E4%B9%9D%E5%B9%B4%E7%BA%A7/" title="粤教版九年级">粤教版九年级</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-08-28T08:59:22.000Z" title="发表于 2023-08-28 16:59:22">2023-08-28</time></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E7%B2%A4%E6%95%99%E7%89%88/">粤教版</a></span></div><div class="content">一、第一课：无处不在的人工智能
初识人工智能人工智能是研究、开发利用数字计算机或者数字计算机控制的机器来模拟、延伸和扩展人的智能，通过感知环境、获取知识和使用知识以获得最佳结果的理论、方法、技术及应用系统的一门学科。人工智能是计算机科学的一个分支，它试图探寻智能的实质，并生产出一种新的能以与人类智能相似的方式做出反应的智能机器，其研究领域包括机器人、专家系统、语音识别、图像识别、自然语言处理和自动驾驶等。人工智能研究的基本内容如下：（1）知识表示。知识表示研究如何将人类知识形式化或者模型化。知识表示的方法包括符号表示法、连接机制表示法等。（2）机器感知。机器感知研究如何使计算机具有类似人的感知能力，如机器视觉、机器听觉、机器触觉等。（3）机器思维。机器思维研究如何有目的地处理通过感知得来的外部信息和机器内部的工作信息。（4）机器学习。机器学习研究如何使计算机具有类似人的学习能力，使它能通过学习自主获取知识。（5）机器行为。机器行为研究如何使计算机具有表达能力，即具有“说”“写”“画”等能力，如智能机械手、机器人、自然语言生成器等。

人工智能的基本特征
具备信息获取能力
人：五官
机器 ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/08/24/hexo-Butterfly-4-%E5%A4%96%E6%8C%82%E6%A0%87%E7%AD%BEtab%E3%80%81button%E3%80%81%E5%9B%BE%E7%89%87%E3%80%81%E9%AB%98%E4%BA%AE%E3%80%81%E8%87%AA%E5%AE%9A%E4%B9%89html/" title="hexo-Butterfly-4-外挂标签tab、button、图片、高亮、自定义html"><img class="post-bg" src= "" data-lazy-src="https://pic1.zhimg.com/v2-f5ca1150bf22dd77e636b0e2fced6d1c_1440w.jpg?source=172ae18b" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="hexo-Butterfly-4-外挂标签tab、button、图片、高亮、自定义html"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/08/24/hexo-Butterfly-4-%E5%A4%96%E6%8C%82%E6%A0%87%E7%AD%BEtab%E3%80%81button%E3%80%81%E5%9B%BE%E7%89%87%E3%80%81%E9%AB%98%E4%BA%AE%E3%80%81%E8%87%AA%E5%AE%9A%E4%B9%89html/" title="hexo-Butterfly-4-外挂标签tab、button、图片、高亮、自定义html">hexo-Butterfly-4-外挂标签tab、button、图片、高亮、自定义html</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-08-24T05:30:54.000Z" title="发表于 2023-08-24 13:30:54">2023-08-24</time></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/hexo/">hexo</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/hexo-Butterfly-%E9%9D%99%E6%80%81%E5%8D%9A%E5%AE%A2/">hexo-Butterfly - 静态博客</a></span></div><div class="content">更多个性化可以查阅别人的博客教程https://haiyong.site/post/22e1d5da.html
自定义html
    
    变成了内联
    
    设置width：100px宽度是200且还有margin


123456&lt;div style=&quot;text-align: center;&quot;&gt;    &#123;% inlineImg https://i.loli.net/2021/03/19/5M4jUB3ynq7ePgw.png 100px %&#125;    &lt;span&gt;变成了内联&lt;/span&gt;    &lt;img src=&quot;https://i.loli.net/2021/03/19/5M4jUB3ynq7ePgw.png&quot; style=&quot;width:100px;heigth:100px;margin:0&quot;&gt;    &lt;span&gt;设置width：100px宽度是200且还有margin&lt;/span&gt;&lt;/div&gt;

Tab ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/08/23/%E5%AE%89%E5%8D%93%E6%8F%90%E5%8F%96boot%E5%92%8Cvbmeta/" title="安卓提取boot和vbmeta"><img class="post-bg" src= "" data-lazy-src="https://img.mp.itc.cn/upload/20170219/177d99c4fa504f37ae88c5c2c6ae05d7_th.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="安卓提取boot和vbmeta"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/08/23/%E5%AE%89%E5%8D%93%E6%8F%90%E5%8F%96boot%E5%92%8Cvbmeta/" title="安卓提取boot和vbmeta">安卓提取boot和vbmeta</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-08-23T15:35:18.000Z" title="发表于 2023-08-23 23:35:18">2023-08-23</time></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E5%AE%89%E5%8D%93/">安卓</a></span></div><div class="content">
前提条件：android 设备已经获得root权限、电脑安装了adb参考文章：https://bbs.pediy.com/thread-210955.htm

一、获取boot.img的位置每个设备的boot.img位置可能都不一样，因此需要先获取boot.img的存放位置
进入ADB模式，可以进入android设备的命令行模式，进入/dev/block/by-name目录12adb shellcd /dev/block/by-name
#查看目录文件所有信息
1ls -l
拷贝之前需要给shell获取root权限，直接使用su命令可能无法获取，我这里需要先在magisk授予权限，然后再执行su命令
二、拷贝boot.img
dd是拷贝命令 if 是input file，of是output file

1dd if=/dev/block/sda25 of=/sdcard/boot.img

三、将boot.img拉取到电脑中1adb pull /sdcard/boot.img</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/08/23/%E7%8E%A9%E5%AE%A2%E4%BA%91(3)%E5%9B%BA%E5%AE%9Amac%E5%92%8Cip/" title="玩客云(3)固定mac和ip"><img class="post-bg" src= "" data-lazy-src="https://img2.baidu.com/it/u=3980554196,2695416044&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=JPEG?w=750&amp;h=500" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="玩客云(3)固定mac和ip"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/08/23/%E7%8E%A9%E5%AE%A2%E4%BA%91(3)%E5%9B%BA%E5%AE%9Amac%E5%92%8Cip/" title="玩客云(3)固定mac和ip">玩客云(3)固定mac和ip</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-08-23T15:07:49.000Z" title="发表于 2023-08-23 23:07:49">2023-08-23</time></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E7%8E%A9%E5%AE%A2%E4%BA%91/">玩客云</a></span></div><div class="content">
解决玩客云刷armbian重启后MAC和IP有一定几率会变的问题本人刷得armbian是5.7宝塔版,网络环境:家用路由器

一、连接ssh
代码方式: nano /etc/network/interfaces
可视化: 小白建议用FinalSheel类似记事本一样操作文件

二、修改代码:
查看文件内容是否类似，实测刷了其他镜像，armbian通用123# Wired adapter #1...# dns-nameservers 223.5.5.5 223.6.6.6
在第一个dns-nameservers下添加下列代码
代码后不要跟注释ip mac 网关 dns根据自己的网络情况设置

1234567auto eth0iface eth0 inet staticaddress 192.168.1.253netmask 255.255.255.0gateway 192.168.1.1dns-nameservers 8.8.8.8 114.114.114.114hwaddress 12:34:56:78:9A:BC
修改完成后，保存并重启系统，查看后台ip和mac是否设置成功。reb ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/05/27/%E7%8E%A9%E5%AE%A2%E4%BA%91(2)%E5%AE%89%E8%A3%85cloudreve%E5%B9%B6%E6%8C%82%E8%BD%BD%E7%A1%AC%E7%9B%98/" title="玩客云(2)安装cloudreve并挂载硬盘"><img class="post-bg" src= "" data-lazy-src="https://img2.baidu.com/it/u=3980554196,2695416044&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=JPEG?w=750&amp;h=500" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="玩客云(2)安装cloudreve并挂载硬盘"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/05/27/%E7%8E%A9%E5%AE%A2%E4%BA%91(2)%E5%AE%89%E8%A3%85cloudreve%E5%B9%B6%E6%8C%82%E8%BD%BD%E7%A1%AC%E7%9B%98/" title="玩客云(2)安装cloudreve并挂载硬盘">玩客云(2)安装cloudreve并挂载硬盘</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-05-27T14:32:00.000Z" title="发表于 2023-05-27 22:32:00">2023-05-27</time></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E7%8E%A9%E5%AE%A2%E4%BA%91/">玩客云</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/linux%E6%8C%82%E8%BD%BD%E7%A1%AC%E7%9B%98/">linux挂载硬盘</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/cloudreve/">cloudreve</a></span></div><div class="content">直刷带宝塔的armbian固件，省事，如果自行安装Nginx、php和mysql非常耗时，4个小时左右挂载硬盘（所有命令建议使用FinallShell，可视化编辑器操作）插上硬盘，查看所有的磁盘fdisk -l
我这里/dev/sda5 是我的硬盘，显示480G

如果硬盘不是ext4格式，格式化命令： mkfs.ext4 /dev/sda5根目录新建awy0718，再新建一个sda5目录作为要挂载的根目录。命令： mkdir awy0718/sda5挂载命令：mount /dev/sda5 /awy0718/sda5重启开机自动挂载，需要修改etc/fstab文件，在后面添加
/dev/sda5 /awy0718/sda5 ext4 defaults 0 0

安装cloudreve
cloudreve官网去github下载
确定linux服务器架构uname -a，下载对应安装包，解压上传。我安装到了/awy0718/cloudreve下
赋予执行权限chmod +x ./cloudreve4 启动 Cloudreve./cloudreve，在控制台记下初始账号密码登录，然后进入c ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/05/27/%E7%8E%A9%E5%AE%A2%E4%BA%91(1)%E5%88%B7armbian/" title="玩客云(1)刷armbian(轻量级Debian)"><img class="post-bg" src= "" data-lazy-src="https://img2.baidu.com/it/u=3980554196,2695416044&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=JPEG?w=750&amp;h=500" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="玩客云(1)刷armbian(轻量级Debian)"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/05/27/%E7%8E%A9%E5%AE%A2%E4%BA%91(1)%E5%88%B7armbian/" title="玩客云(1)刷armbian(轻量级Debian)">玩客云(1)刷armbian(轻量级Debian)</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-05-27T01:48:10.000Z" title="发表于 2023-05-27 09:48:10">2023-05-27</time></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E7%8E%A9%E5%AE%A2%E4%BA%91/">玩客云</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/armbian/">armbian</a></span></div><div class="content">
玩客云刚出第三方系统的时候，还很麻烦，什么U盘启动，还要烧录固件到EMMC，找了几个可以直刷固件的，感谢一些大神

1. 玩客云刷armbian6.1内核(什么都不带，什么宝塔等等自行安装)
打开USB_Burning_Tool_2.1.6.8版本，文件-&gt;导入烧录包，选择Armbian_23.05.0-trunk_Onecloud_bullseye_current_6.1.27_minimal.burn.img，选择擦除所有和擦除BootLoader
玩客云双USB插入电脑，1.3版本短接RX字母上方两个节点,用卡针按住reset，再接电源，直到USB_Burning_Tool有hub出现，松开短接，开始
烧录完成拔掉电源，重启，红灯为正常
再次重启连接网线，等待几分钟，在路由器后台出现IP
打putty或者FinalShell输入IP，登录ssh，账号root，密码1234
编辑软件源nano /etc/apt/sources.list
删掉出现的几行代码，输入清华源代码123456789#清华大学源deb https://mirrors.tuna.tsinghua.edu ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/05/26/%E4%B8%87%E7%BD%91%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA%E5%A4%9A%E7%BD%91%E7%AB%99%E9%83%A8%E7%BD%B2/" title="万网虚拟主机多网站部署"><img class="post-bg" src= "" data-lazy-src="https://gss0.baidu.com/-vo3dSag_xI4khGko9WTAnF6hhy/zhidao/pic/item/a71ea8d3fd1f4134eaef0081221f95cad0c85e70.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="万网虚拟主机多网站部署"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/05/26/%E4%B8%87%E7%BD%91%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA%E5%A4%9A%E7%BD%91%E7%AB%99%E9%83%A8%E7%BD%B2/" title="万网虚拟主机多网站部署">万网虚拟主机多网站部署</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-05-26T10:35:27.000Z" title="发表于 2023-05-26 18:35:27">2023-05-26</time></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA/">虚拟主机</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/%E4%B8%87%E7%BD%91/">万网</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/thinkphp/">thinkphp</a></span></div><div class="content">背景最近图便宜买的万网虚拟主机，50一年挂个备案，没什么流量，就想着再布一个后端的api网站，搜了很多教程均不成功，最后莫名其妙的可以了，就记录一下
结构
htdocs是万网虚拟主机的网站根目录，存放网站文件部署了两个网站，分别是 www.acwy.fun 和 api.acwy.funapi是用tp5做的，虽然出的时间比较久，bug比较多，但是懒得改

根目录: htdocs/.htaccess123456789101112&lt;IfModule mod_rewrite.c&gt;    RewriteEngine On    # 绑定 www 文件夹为主站    RewriteCond %&#123;HTTP_HOST&#125; ^(www.)?acwy.fun$    RewriteCond %&#123;REQUEST_URI&#125; !^/www/    RewriteRule ^(.*)$ /www/$1 [L]	    # 绑定 api 文件夹为api域名    RewriteCond %&#123;HTTP_HOST&#125; ^api.acwy.fun$    ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/05/10/%E5%B8%B8%E7%94%A8%E8%AF%AD%E8%A8%80%E5%9B%BD%E5%86%85%E9%95%9C%E5%83%8F%E6%BA%90/" title="常用语言国内镜像"><img class="post-bg" src= "" data-lazy-src="https://img0.baidu.com/it/u=3433175296,3307113082&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=JPEG?w=607&amp;h=385" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="常用语言国内镜像"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/05/10/%E5%B8%B8%E7%94%A8%E8%AF%AD%E8%A8%80%E5%9B%BD%E5%86%85%E9%95%9C%E5%83%8F%E6%BA%90/" title="常用语言国内镜像">常用语言国内镜像</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-05-09T16:00:00.000Z" title="发表于 2023-05-10 00:00:00">2023-05-10</time></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/python/">python</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/node/">node</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/npm/">npm</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/php/">php</a></span></div><div class="content">node
npm淘宝源123npm config set registry=https://registry.npm.taobao.org# 还原默认源：npm config set registry=https://registry.npmjs.org
cnpm12npm install -g cnpm --registry=https://registry.npm.taobao.orgcnpm install XXX(模块名)

python
清华源pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
豆瓣源pip config set global.index-url https://pypi.doubanio.com/simple/
阿里pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
中科大pip config set global.index-url https://mirrors.ustc. ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/04/10/hexo-Butterfly-3-%E6%96%87%E7%AB%A0%E9%A1%B5%E8%AE%BE%E7%BD%AE/" title="hexo-Butterfly-3-文章页设置"><img class="post-bg" src= "" data-lazy-src="https://pic1.zhimg.com/v2-f5ca1150bf22dd77e636b0e2fced6d1c_1440w.jpg?source=172ae18b" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="hexo-Butterfly-3-文章页设置"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/04/10/hexo-Butterfly-3-%E6%96%87%E7%AB%A0%E9%A1%B5%E8%AE%BE%E7%BD%AE/" title="hexo-Butterfly-3-文章页设置">hexo-Butterfly-3-文章页设置</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-04-10T12:54:23.000Z" title="发表于 2023-04-10 20:54:23">2023-04-10</time></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/hexo/">hexo</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/hexo-Butterfly-%E9%9D%99%E6%80%81%E5%8D%9A%E5%AE%A2/">hexo-Butterfly - 静态博客</a></span></div><div class="content">
_config.butterfly.yml设置：

文章页设置 post_meta版权 post_copyright打赏 reward文章页目录 tocpost    文章页是否显示 TOCpage    普通页面是否显示 TOCnumber    是否显示章节数expand    是否展开 TOCstyle_simple    简洁模式（侧边栏只显示 TOC, 只对文章页有效 ）scroll_percent    是否显示滚动进度百分比
相关、推荐文章 related_post文章过期提醒 noticeOutdatelimit_day： 距离更新时间多少天才显示文章过期提醒message_prev ： 天数之前的文字message_next：天数之后的文字
文章编辑按钮 post_edit在文章标题旁边显示一个编辑按钮，点击会跳转到对应的链接去
文章分页按钮 post_paginationpost_pagination: false    关闭分页按钮post_pagination: 1    下一篇显示的是旧文章post_pagination: 2    下一篇显示的是新文章
页 ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/04/10/hexo-Butterfly-2-%E7%94%9F%E6%88%90%E6%96%87%E7%AB%A0%E5%92%8C%E9%A1%B5%E9%9D%A2/" title="hexo-Butterfly-2-生成文章和页面"><img class="post-bg" src= "" data-lazy-src="https://pic1.zhimg.com/v2-f5ca1150bf22dd77e636b0e2fced6d1c_1440w.jpg?source=172ae18b" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="hexo-Butterfly-2-生成文章和页面"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/04/10/hexo-Butterfly-2-%E7%94%9F%E6%88%90%E6%96%87%E7%AB%A0%E5%92%8C%E9%A1%B5%E9%9D%A2/" title="hexo-Butterfly-2-生成文章和页面">hexo-Butterfly-2-生成文章和页面</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-04-10T12:53:23.000Z" title="发表于 2023-04-10 20:53:23">2023-04-10</time></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/hexo/">hexo</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/hexo-Butterfly-%E9%9D%99%E6%80%81%E5%8D%9A%E5%AE%A2/">hexo-Butterfly - 静态博客</a></span></div><div class="content">
_config.butterfly.yml设置：

新建文章和页面 Front-matter
在/source/_posts里新建markdown文件，前面加上Front-matter直接变成文章
1234567891011121314151617181920212223242526---title	    【必需】文章标题date	    【必需】文章创建日期updated	    【可选】文章更新日期tags	    【可选】文章标签categories	【可选】文章分类keywords	【可选】文章关键字description	【可选】文章描述top_img	    【可选】文章顶部图片cover	    【可选】文章缩略图(如果没有设置top_img,文章页顶部将显示缩略图，可设为false/图片地址/留空)comments	【可选】显示文章评论模块(默认 true)toc         【可选】显示文章TOC(默认为设置中toc的enable配置)toc_number  【可选】显示toc_number(默认为设置中toc的number配置)toc_style_simpl ...</div></div></div><nav id="pagination"><div class="pagination"><a class="extend prev" rel="prev" href="/"><i class="fas fa-chevron-left fa-fw"></i></a><a class="page-number" href="/">1</a><span class="page-number current">2</span><a class="page-number" href="/page/3/#content-inner">3</a><a class="extend next" rel="next" href="/page/3/#content-inner"><i class="fas fa-chevron-right fa-fw"></i></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src= "" data-lazy-src="/img/logo.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">梧桐影下月光卧</div><div class="author-info__description">分享个人学习路上的小知识</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">28</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">35</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://beau.acwy.fun"><i class="fa-solid fa-envelope"></i><span>点击联系我</span></a></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content"><b> <font color="#e66b6d">欢</font> <font color="#e66d98">迎</font> <font color="#e66cc6">访</font> <font color="#cc6de6">问</font> <font color="#9770e6">a</font> <font color="#6d93e6">c</font> <font color="#6fcde6">w</font> <font color="#72e6b6">y</font> <font color="#72e689">的</font> <font color="#99e670">学</font> <font color="#cde670">习</font> <font color="#e6df72">日</font> <font color="#e6c073">记</font> </b> <p align="center"> <img src= "" data-lazy-src="https://upyun.acwy.fun/acwy.fun/公告1.gif" width="50" alt="mao"> </p> <p align="center">微信：acwy0718</p> <p align="center">邮箱：awy0718@gmail.com</p></div></div><div class="sticky_layout"><div class="card-widget card-tags"><div class="item-headline"><i class="fas fa-tags"></i><span>标签</span></div><div class="card-tag-cloud"><a href="/tags/%E8%81%94%E7%B3%BB%E6%88%91/" style="font-size: 1.15em; color: rgb(12, 167, 197)">联系我</a><a href="/tags/hexo/" style="font-size: 1.33em; color: rgb(76, 64, 106)">hexo</a><a href="/tags/hexo-Butterfly-%E9%9D%99%E6%80%81%E5%8D%9A%E5%AE%A2/" style="font-size: 1.27em; color: rgb(58, 153, 126)">hexo-Butterfly - 静态博客</a><a href="/tags/python/" style="font-size: 1.45em; color: rgb(41, 128, 28)">python</a><a href="/tags/BeautifulSoup/" style="font-size: 1.15em; color: rgb(143, 60, 188)">BeautifulSoup</a><a href="/tags/%E8%87%AA%E5%8A%A8%E5%8C%96/" style="font-size: 1.27em; color: rgb(186, 155, 148)">自动化</a><a href="/tags/%E7%88%AC%E8%99%AB/" style="font-size: 1.39em; color: rgb(168, 76, 168)">爬虫</a><a href="/tags/%E7%BD%91%E9%A1%B5%E8%A7%A3%E6%9E%90/" style="font-size: 1.21em; color: rgb(75, 41, 146)">网页解析</a><a href="/tags/playwright/" style="font-size: 1.21em; color: rgb(64, 194, 40)">playwright</a><a href="/tags/%E9%9D%99%E6%80%81%E5%8D%9A%E5%AE%A2/" style="font-size: 1.15em; color: rgb(87, 94, 5)">静态博客</a><a href="/tags/requests/" style="font-size: 1.15em; color: rgb(71, 79, 194)">requests</a><a href="/tags/win10/" style="font-size: 1.21em; color: rgb(12, 191, 47)">win10</a><a href="/tags/%E5%8F%B3%E9%94%AE%E6%B7%BB%E5%8A%A0cmd/" style="font-size: 1.15em; color: rgb(115, 66, 77)">右键添加cmd</a><a href="/tags/windows%E7%B3%BB%E7%BB%9F/" style="font-size: 1.15em; color: rgb(166, 103, 135)">windows系统</a><a href="/tags/%E5%AE%89%E5%8D%93/" style="font-size: 1.15em; color: rgb(107, 113, 120)">安卓</a><a href="/tags/xpath/" style="font-size: 1.15em; color: rgb(40, 122, 102)">xpath</a><a href="/tags/node/" style="font-size: 1.15em; color: rgb(66, 39, 20)">node</a><a href="/tags/npm/" style="font-size: 1.15em; color: rgb(58, 129, 175)">npm</a><a href="/tags/php/" style="font-size: 1.21em; color: rgb(194, 18, 177)">php</a><a href="/tags/%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA/" style="font-size: 1.15em; color: rgb(49, 193, 129)">虚拟主机</a><a href="/tags/%E4%B8%87%E7%BD%91/" style="font-size: 1.15em; color: rgb(141, 54, 58)">万网</a><a href="/tags/thinkphp/" style="font-size: 1.15em; color: rgb(147, 192, 15)">thinkphp</a><a href="/tags/%E6%9C%8D%E5%8A%A1%E5%99%A8%E9%80%9A%E4%BF%A1/" style="font-size: 1.15em; color: rgb(18, 9, 42)">服务器通信</a><a href="/tags/%E5%89%8D%E7%AB%AF/" style="font-size: 1.15em; color: rgb(104, 35, 184)">前端</a><a href="/tags/%E5%86%B0%E7%82%B9%E8%BF%98%E5%8E%9F/" style="font-size: 1.15em; color: rgb(194, 37, 41)">冰点还原</a><a href="/tags/%E8%B7%B3%E8%BF%87%E5%B9%BF%E5%91%8A/" style="font-size: 1.15em; color: rgb(124, 196, 154)">跳过广告</a><a href="/tags/gkd/" style="font-size: 1.15em; color: rgb(15, 88, 28)">gkd</a><a href="/tags/%E6%9D%8E%E8%B7%B3%E8%B7%B3/" style="font-size: 1.15em; color: rgb(54, 150, 84)">李跳跳</a><a href="/tags/%E7%8E%A9%E5%AE%A2%E4%BA%91/" style="font-size: 1.27em; color: rgb(45, 38, 18)">玩客云</a><a href="/tags/armbian/" style="font-size: 1.21em; color: rgb(167, 27, 196)">armbian</a><a href="/tags/linux%E6%8C%82%E8%BD%BD%E7%A1%AC%E7%9B%98/" style="font-size: 1.15em; color: rgb(149, 172, 174)">linux挂载硬盘</a><a href="/tags/cloudreve/" style="font-size: 1.15em; color: rgb(4, 40, 131)">cloudreve</a><a href="/tags/%E7%B2%A4%E6%95%99%E7%89%88/" style="font-size: 1.21em; color: rgb(42, 60, 10)">粤教版</a><a href="/tags/%E7%BA%BF%E7%A8%8B/" style="font-size: 1.21em; color: rgb(31, 192, 139)">线程</a><a href="/tags/%E8%BF%9B%E7%A8%8B/" style="font-size: 1.15em; color: rgb(103, 25, 61)">进程</a></div></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">28</div></div><div class="webinfo-item"><div class="item-name">已运行时间 :</div><div class="item-count" id="runtimeshow" data-publishDate="2020-09-25T07:31:00.000Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">本站总字数 :</div><div class="item-count">13.7k</div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2024-05-05T13:13:51.207Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div></div></div></div></div></main><footer id="footer" style="background-image: url('/img/top_img.jpeg')"><div id="footer-wrap"><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div><div class="footer_custom_text"><div> <a href="https://beian.miit.gov.cn/" target="_blank">豫ICP备2023010490号-1</a> </div> <div> <a style="display:flex;justify-content:center;align-items:center;" target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=41152402000204"> <img src= "" data-lazy-src="/img/beian.png" style="width:20px;height:20px;margin:0 5px"> <span>豫公网安备 41152402000204号</span> </a> </div> <div> <a style="display:flex;justify-content:center;" href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" target="_blank"> <span>本网站由</span> <img style="height:30px;margin:0 3px" src= "" data-lazy-src="/img/upyun_logo5.png"> <span>提供CDN加速/云存储服务</span> </a> <div/></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.min.js"></script><script src="https://cdn.jsdelivr.net/npm/instant.page/instantpage.min.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.iife.min.js"></script><div class="js-pjax"><script>window.typedJSFn = {
  init: (str) => {
    window.typed = new Typed('#subtitle', Object.assign({
      strings: str,
      startDelay: 300,
      typeSpeed: 150,
      loop: true,
      backSpeed: 50,
    }, null))
  },
  run: (subtitleType) => {
    if (true) {
      if (typeof Typed === 'function') {
        subtitleType()
      } else {
        getScript('https://cdn.jsdelivr.net/npm/typed.js/lib/typed.min.js').then(subtitleType)
      }
    } else {
      subtitleType()
    }
  }
}
</script><script>function subtitleType () {
  fetch('https://v1.hitokoto.cn')
    .then(response => response.json())
    .then(data => {
      if (true) {
        const from = '出自 ' + data.from
        const sub = []
        sub.unshift(data.hitokoto, from)
        typedJSFn.init(sub)
      } else {
        document.getElementById('subtitle').innerHTML = data.hitokoto
      }
    })
}
typedJSFn.run(subtitleType)
</script></div><canvas class="fireworks" mobile="false"></canvas><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/dist/fireworks.min.js"></script><script id="canvas_nest" defer="defer" color="0,0,255" opacity="0.7" zIndex="-1" count="99" mobile="true" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/dist/canvas-nest.min.js"></script></div></body></html>